<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
  <script>
    const foo = {
      name: "张三",
      info: {
        age: 24,
      },
    };
    const newFoo = structuredClone(foo);
    foo.child = newFoo;
    newFoo.parent = foo;
    console.log(newFoo);
    console.log(newFoo == foo);
    console.log(newFoo === foo);
    console.log(newFoo.info === foo.info);
  </script>
</html>
